Implement map

I'll have a shot at the at the other map functions later on as well :)

Very nice initiative!