Everything works yet still fails test 18:
sometimes after a couple of intermixed calls to findHorizontalSeam(),
findVerticalSeam(), removeHorizontalSeam(), removeVerticalSeam() the
energy of the found seam does not correspond anymore with the reference
solution