who was the thirteenth president of the united states?