Updates to UIPane. Added MatrixDimension class