[RHD] Added preconditions check to prove that there is a bug in the current implementation
Fixed problem that possible islands could be of different size due to partial overlaps.