week02-seamCarving: Still have issues of memory usage