Implementation of collaborative filtering algorithms