add meanshift implementation