John Cochrane — Scottish lawyer and chess player (1798-1878)