Added parallel_map function