Moved sample method to a new module in order to be reused in other script
Read input data from file to be run by the gibbs sampling algorithm