Added deleteNode method

Deletes a node if it does not have any children.

To be added.. deleting nodes with children.