Progr 2 matrix inv