Removing mutability calls from topologicalSort
Removing mutability calls from topologicalSortOld
Removing mutability of leaves calls from topologicalParSort
leaves is now immutable YAY