add datastructures, test to allow simple mapreduce task