sliding window

Just adding a new function that adds a sliding window analysis to the
package.