Added distmatrix