who was the thirteenth president of usa?