Work in progress. Converting Set implementation to map.

Compiles.
Work in progress. Converting Set implementation to map.