This class allows the use of customized substitution matrices. See tech doc for details.
$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.