assignment 4 node deletion to be solved