Add isCompatibleRow

Prior to this commit, the method isCompatibleRow was not implemented.
Now it has been implemented to take in two rows of a transition table
and confirm if they are equivalent.