Almost Linear Time Consistent Mode Estimation and Quick Shift Clustering