Java commandline programs for calculating homophily statistics