change const MAX_CONNECTIONS to var
add sorted set methods
change bitcount position argument type to int