Added function for acceptance/rejection sampling.
Added acceptance probability to the return.
Merge branch 'dev' of https://github.com/agartland/utils into dev