Lyman M. Cook, 1809-1859