first commit, implemented EM and gibbs sampling and plotting of the traces of the two