Despite little formal education, Hogg wrote one of the finest novels in Scottish literature, a disturbing tale of the divided self that still resonates.