Removing comparator interface for equality checking (to increase performance).
Revert "Removing comparator interface for equality checking (to increase performance)."

This reverts commit 97f54c3eec9aac93e60fdd122e839e4cd93a960b.
Work in progress. Converting Set implementation to map.

Does not compile currently.