espadrine epfl algorithms 9 Problem3.tex