Added moving window aggregates
Improved diff method, added support for returning sparse vectors