Add function to calculate & plot connected component size distribution.

@wronk