BUG: Fixed two bugs in the excessive gap algorithm.
MAINT: Merge conflict.