A big stock market rally also greeted the new American president 200 years ago