Implementation of a seam carving algorithm for a school assignment