Switched implementation of the sieve from a vector to an unordered map.