Linear dependencies in a matrix