Fixed bug in findMaximum (it only considered a single connected component of the...