Comparison of 2 different algorithms for solving Day 6 of Advent of Code 2015