add some heuristics to speed up APSP on larger graphs
minor loading optimisations
kmeans utility for preprocessing. Runs at about 6.5s for 20k 3D elements with 2k means