Function MatrixValue(mA, r, c)
Returns the value stored at the given row and column in the matrix