Some cleanup
More cleanup, more protections
Better bug detection
Better debug output, fixed root generation
Replaced allPairs by iterator
Debugging LCA
Fixed LCA
Computing for all pairs
minor cleanups
Writing to file, fixed bug.