Integer set implementation using Patricia trees