Fixed SDTWWarp w computation