Rae, John Malcolm, educationist