adding a seam carving context to store all the arrays.