Fix checkUnity. Way over-thought the running time on the previous
version, should be faster this way without the set.
Tested and works in xubuntu 12.10 vm, closes #182.