who was the thirteenth american president?