A new show at the Whitney showcases the visionary who devised the art world’s first artificial intelligence