Rearrange functions
Add boolean is_unique_subset function