Replacing 'const int' parameters with just plain 'int'.
Adding index operators to the matrices using [] to index all values on one dimension and () to index values using the column and row.