createGP function

creates a Gaussian process object