compare(Solution solution1,
Solution solution2)
Compares the two solutions using a dominance relation, returning
-1 if solution1 dominates solution2, 1 if
solution2 dominates solution1, and 0 if the
solutions are non-dominated.