Small molecule inhibitor of cognitive impairment associated with neurodegenerative disease