Added MOG and MOG2.

1. Added implementation of MOG and MOG2, as well as tests and a sample.
2. Optimized the kernels to get better performance.
2. Modified according to the feedback of the community,