Here is an implementation of collaborative filtering system, which is the most popular algorithm for recommender systems.