speeded up ocl::distanceToCenters