A programmer invents software to forestall dementia, but risks turning a whole generation into 'glitches'.