Merge
Merged
Added method to find cycles, and method to get max distance of trees