Background modeling using Gaussian Mixture Model - C++