Implemented red-black tree specific code from chapter 3