Added rough (untested) nested sampling code