Distance matrix loader