Made _map_reduce private and added a parallelize function