Added delete_node method for singly linked list.