For the first time, scientists have observed memories forming in babies' brains in real time.