I\'m working on a program for seam carving (smart resizing of images) and my current implementation has an ordered list of seams. That is, when resizing the image smaller, t