updating map/reduce lib and example.