An artificial neural network built into a computer memory chip reconstructs the human cortex with high accuracy in real time