Matrix class add