Implement map.
Implement reduce and fix map.