Vertical Seam removal/insertion using dynamic programming