Added implementation to sdtw-utils.h