added paulstretch algorithm + tests