rewritten OpenCL version of cascade classifier to have better efficiency on discrete GPUs

this pr replaces #2222.

Please, also merge https://github.com/Itseez/opencv_extra/pull/127.