bugs in averageColumn funtcion

syntax error m1=>matrix
line 379 out of the for loop