Calculate largest cluster size.
Stylistic/optimization tweaks.