function avg and avgUnique - counting avg number of private allels