added general equation for gram-schmidt process