200X speed increase

Stop keeping track of size, use count()
Keep set values as keys of array, not as values
Merge pull request #1 from rjmunro/master

Refactored set to use keys not values of array for huge speed increase