add rolling_partition
improved implementation of rolling_partition.

This is about 20% faster than the old version by the benchmark in
bench/test_rolling_partition.py

Also added imports

Implementation by @eriknw
%s/rolling_partition/sliding_window/g
rename sliding_window benchmark