modified convolutionFilter function in C(but still not working)