perm : a computer program to detect structuring factors in social units