Made deleteNode() private.