add basic map and reduce for DArray