Matlab Implementation of Seam Carving