Fixing a bug in findWeightedCentroidsImpl where the outer bound of a centroid was not scanned