detailed seamcarver and hopefully got closer to a working algorithm