increased OO design of how contingency matrices are modeled.
refactored ContingencyMatrix and AbstractMatrix classes for better
encapsulation