which u.s. president is thought to have taught himself how to read and write?