change InMemStore to use linked maps and sets