first implementation of gaussian process regression