a two stage Bean Machine simulation function

new pull request for quincunx2 function