test and modify maxOfarray() and maxOfMatrix()
test and fix matSub()