Added method to remove all the nodes from the table