Hayes, Samuel, 1776-1839