added digit recognition
added matlab and gibbs sampling code