Code from our Pattern recognition course ( http://www.fer.unizg.hr/predmet/rasuzo_a ) lab assignment.