implement but not yet test Nielsen modified rejection sampling