Statistics for Clustering Large Software Systems at Multiple Layers