Restructure red-black tree class