Added fields in Matrix class.