How the prefix sets are implemented?