refactor red-black tree function names