Make map a real red-black tree (closes #13)
Make map an AA-tree, and add unit tests for map
map: Fix some compiler warnings