Optimize OpenCL version of StereoBM function
Fix problems on NVidia devices.
Merge pull request #3284 from vbystricky:oclopt_stereoBM