Added operation to remove dead nodes from the tree.
Formatting.