How close was democrat samuel Tilden to winning the election?