Fixed covariance computation in CStreamingMMD and some other changes

TODO