A school in San Francisco is changing how students learn by making artificial intelligence central to their education.