Mathematician Alan Turing was instrumental in cracking the enigma codes, but he took his own life after he was convicted of homosexual activity. The pardon follows a long campaign to restore his reputation.