additional note on windows performance
rebuild distance matrix with size_t indexes