fit_meanshift function

Fast implementation of meanshift model