purity function included in helper.py. main calls it and prints purity, sponsor groups, and max/min size of sponsor groups.