finished head_tails, slowly improving hash string in map reduce