Implementing InterpolatedGrid and TabulatedDistribution