returning the node in successor and predecessor