Gram-Schmidt Program