Added a function to uf that generates a random invertible matrix.