Kruskal now works when receiving points in an array.