Added deleteNodebyIndex method