The origin of the genetic code