Revise ocl::square sample

also fix a bug in hog and facedetect accuracy check