Self-Tuning Spectral Clustering