Deletion of chains and polygons implemented
Fixed a bug while deleting nodes with mixed selection