Homework for lecture "Machine Learning", University of Bern, HS2013.