Tim Cook admitted Apple is working on building the brains for autonomous cars