trying to set up an efficient data structure for finding out if an incoming message's topic matches an existing topic subscription and how to do that quickly