Statistical Treatment Of Gravitational Clustering Algorithm