DTW function library provides the DTW algorithm. It is implemented as a separate DLL library. The DLL is not designed to provide thread safety; If the library is called from several sources at a time, it may cause instability and provide erroneous results.