C code to optimize parameters of the Moving Window Deconvolution method for pulse height evaluation