Optimize OpenCL version of StereoBM function