Hoar, Samuel, 1778-1856