deletion of a node from linked list using single node pointer