Implementation of a neighbour-based collaborative filtering algorithm.