Nested Sampling

We need a more flexible nested sampling algorithm.