Modified sparse grid method.