FLANN-based implementation of mean shift algorithm