Added timestretch algorithm