Red-black tree implemented.