sorted map/prefix search class with asynchronous adder thread