Implemented map and reduce for Collections
Implemented min() & max for DatabaseCollection