now solutions are grouped by whether they are unique