I am not sure if this answer is essentially the same as Omnomnomnom's, but here goes.
There is a theorem stating that given a linearly independent set $L$ and a generating set $S$ for the vector space, and $L\subseteq S$, there is a basis $B$ such that $L\subseteq B\subseteq S$.
When the vector space is finite-dimensional, there is an algorithm applying this theorem. In your case, the set $L$ is $\{ \langle 1, 2, -1, 3\rangle, \langle 0, 2, 1, 1 \rangle \}$. While for $S$, you can choose any finite generating set $S'$ you like, and choose $S:=S'\cup L$, which would be a finite generating set and a superset of $L$.
You then remove vectors from $S$ one by one to get a smaller and smaller generating set (and do not remove vectors from $L$) until you end up with a linearly independent generating set, which is a basis containing $L$.
This method should work well for other finite-dimensional vector spaces.