What was the biggest war the US got involved with in the early 19th century