Linear Manifold Clustering algorithm