Added sparse-map to core with corresponding test.