Added best-path envelope to obtain a substantial improvement in efficiency via path pruning for sequences where there are significant runs of 'equal'