Double elimination

Added double-elimination feature.