espadrine epfl algorithms 9 Problem4.tex