Exercises 3, calculation of MAP via Dirichlet prior