tweaked how gibbs sampling returns data from the methods, added Pair type