little optimizations on PitchShift.cpp