Distance matrix. Much faster