add moving average dyad; window =: x; array =: y
add getSamples monad; length =: y
error checking and cleanup