Bug fixes in fast-sdtw.cc