Still looking for the memory leak
Removed collectiontree class because it was unused