Pyret implementation of Avidan’s Seam Carving algorithm (2007)  using dynamic programming in optimized runtime.