Using R: Gram-Schmidt Orthonormalization Process