Rewrote moments of opencl version.

Rewrote the interfaces and fixed the accuracy and performance problems. All the data types of one channel are supported.