MapReduce lib: memory leaks fixed, added configurable option MAP_CHUNK_SIZE