A comparison of ways to check if sets are equal