left leaning red black tree implementation

Here's an initial attempt of having a sorted map implementation for building the memdb on top of it. 
This is definitely not ready for merging, but let's practice on github pull requests with this.