added a basic map reduce function, still needs to be expanded a lot but it allows for going over in memory objects in a single thread and then apply the mapping function