Added on-the-fly similarity computation for SDTWWarp