Implementation of a red black tree in java with different traversals