Added functions to compute the posterior covariance of a GP.