Merge "add convolution function with adjustable length" into nextgenv2