Algorithms to perform clustering with Hadoop