Orthogonal Vectors

Given a set of vectors $\{x_1,\ldots,x_n\}$, how can I find a set of orthonormal vectors $\{y_1,\ldots,y_m\colon m\leq n\}$ spanning the same space spanned by $\{x_i\}$?

-