working on map/set replacement for redblack