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