Method: make the vectors into the rows of a matrix.Carry out a Gaussian row-reduction on the matrix. Ignore any rows that end up as consisting of all zeros. The remaining (nonzero) rows tell you which of the original vectors form a basis for the space that they span. Namely, you take the vectors that were originally in those nonzero rows.