Add getSuccessor and getPredecessor