Add red-black tree implementation