Seam carving assignment from Algorithms II course.