Basic map implementation in C.