change output format from KNN to be memory packed, and adapted SSSP to take this. Speedup is great.