Reduce malloc in the GaussianSumFilter but cleaning up the PosteriorWeightsCalculator. Mentioning @christos