implementing and testing ocl std lib