fix Convolute bugs, note that matlab loops from 1~n, we need 0~n-1.