The universe in a computer