Implementing multiple variants of critbit