Bundle Method for Risk Minimization for Structured Output