Modified Gram Schmidt Process