Fixed sort(). Now working on the rest of Kruskal.