Added sanity check of moments.
Merge pull request #74 from melody-rain:2.4_moments_ocl