Optimize OpenCL version function BackgroundSubstractionMOG2