Removed rollingaverage class and replaced its usage with rollingvector that is more stable