bugfixes in particlefilter and particle (changed some values to double to have additive error, incorporated box muller transform for sample gaussians etc.)