code to calculate average path length of a twee structure
small addition to stats prog