A history of contested presidential elections, from Samuel Tilden to Al Gore