Machine learning algorithms for building recommender systems