Add "map" algorithm