William Baillie, Lord Polkemmet — Scottish judge