U=[[-2,1],[3,-1]] has determinant -1 and U A=[[2,0],[0,4]], which is row HNF.
