Function to determine whether a partition contains the allowed group sizes
check_sizes(partition, sizes.allowed, numgroups.allowed)
partition
: observed partitionsizes.allowed
: vector containing possible group sizes in the partitionnumgroups.allowed
: vector containing possible number of groups in the partitionboolean