stackedSampler function

Sample from the stacked posterior distribution