Solving the kriging problem by using the Gram-Schmidt orthogonalization