simplified meanshift a little
sort meanshifts