-- Block substitution algorithm that merges nearby events based on distance. -- Also does some cleanup of GenotypingEngine