GP_sampling_RD() and its dependencies are implemented, but un-tested.