Switch all moving window functions to N-dimensions
All functions are now N-dimensional

With the exception of nn, which previously only worked for ndim=2.