London, England (CNN) -- The entire genetic codes of two common types of cancer have been cracked, according to scientists, who say the breakthrough could unlock a new era in the treatment of deadly diseases.