add detectpeakcmp, debug rmzeropadding, improve xcorr