OCL: refactored, vectorized some functions from ocl arithm