who was the president when the lousiana territory was purchased?