Added method Node deleteNode(Node head, int d).

Delete the first Node with the given value from a linked list.