Duality in the genetic code