Adapting rejection sampling to f_d distributions