sample of what map reduce can do, written in java