Implementing ciphers and algorithms found in Simon Singh's excellent 'The Code Book'