On the computation of the span of a set of vectors