Similar Items: Pattern recognition and machine learning