map_reduce emulate in ruby. it work.