schmidt gram orthogonal