Added an implementation of map in C.