Fixed threshold.
Renamed low/high thresholds into weak/strong thresholds.
Added empty graph module for computing the connected components.