<human>:  With regards to the history of Madison Square Park, how did it get its name?
<bot>: It was named after James Madison, the fourth president of the USA. The park is located in New York City, and was originally a farm. It was purchased by the city in 1831.