Add cluster stats

Add cluster stats function into clustering.