Gray, William, 1794-1865