who was the thirteenth president of the us?