Made a matrix wrapper module, to which matrix sum and product have been moved