outsourced LocalToleranceFunction and DistanceToleranceFunction from TolerantEditDistance
increased verbosity of TolerantEditDistance
bugfix: _haveBackgroundLabel was set too late in TolerantEditDistance