Hadoop based Algo