Replaced symmatrix with distmatrix