Class SubMatrix
$rules : array
Rules of the matrix
__construct()
submatrix simply initializes the rules property to the empty array.
getRules() : array
Gets the rules of the matrix
addrule()
Adds a rule to the substitution matrix.