A history of the family of Cairnes or Cairns and its connections