Added deleteNode method

Deletes a node if it does not have any children.

To be added.. deleting nodes with children.
Merge pull request #32 from GaneshChandrasekaran/patch-1

Added deleteNode method