Some RHadoop algorithms as practice