Add debug function to fastdtw