improved stability of sparse GP computations

Specifically in computing dL_dKmm