Adding getInOrderSuccessor function.