Padding to properly handle ends of input signal; faster autocorrelation calc