Gram-Schmidt process. Orthogonal matrices. Best approximation theorem.