fixed one bug for MGramSchmidt()