Map-reduce impelementation for page rank and some other tasks