I have a set of $M$ vectors in the module $\mathbb{Z}^n$ ($M>n$) over $\mathbb{Z}$.
Question 1: How can I find a linearly independent subset of these vectors? (so that others can be written as a linear combination of this subset with integer coefficients)
Question 2: Let's assume that this linearly independent subset forms the basis for an $n$-dimensional lattice (or equivalently there are $n$ of them). Is there a way that without finding the subset, I can find the determinant of the matrix whose columns are these basis?
To clarify, let's say for example I have these $M=3$ vectors in $\mathbb{Z}^2$: $$ v_1 = (1,1) \\ v_2 = (2,0) \\ v_3 = (0,2) $$
What I want for the linearly independent subset is either the subset $\{v_1,v_3\}$ or $\{v_1,v_2\}$ but not $\{v_2,v_3\}$. Because for example in the first case I can write $v_2 = 2v_1-v_3$.
Problem 2: It's not quite as straightforward as for a field but you can still get a very concrete answer. A square matrix over a commutative ring with unit $R$ defines an injective map $R^n \rightarrow R^n$ if and only if its determinant is not a zero divisor; and it defines a surjective map $R^n \rightarrow R^n$ if and only if its determinant is invertible.
(In particular, surjective maps $R^n \rightarrow R^n$ are always injective. This isn't really trivial.)
A set of $n$ column vectors is a basis of $R^n$ is a basis if and only if the matrix they form is a bijective map. Over $\mathbb{Z},$ this means the matrix has determinant $\pm 1$, since these are the only integers whose multiplicative inverse is also an integer.
Problem 1) To find a linearly independent subset, just take the first vector that isn't zero. Maximal linearly independent subset is not really a good concept over $\mathbb{Z}$: for example, in $\mathbb{Z}^1$, the set $8 \mathbb{Z}$ should be considered smaller than $2 \mathbb{Z}$ although $\{8\}$ and $\{2\}$ are both sets of size $1$.