Delete nodes of tree data structure where children count is 0 - C#