clustering by spectral method