Created a generic user-based collaborative filtering algorithm