Distributed architecture for k-nearest neighbors recommender systems