Completed computewindow() with tests.

This might mean that fastdtw() works now, but it has not been tested.
Fast DTW appears to work--no tests yet.