code for "Efficient Optimization for Sparse Gaussian Process Regression"