finished kDistanceFromLeaf, getSuccessor, getPredecessorAndSuccessor and kthSmallestElement