A survey on spectral and kernel methods for clustering