add some linalg methods for integral matrices

In particular this makes rank work for integral matrices.