Add hashCode/equals to Solution.