A simulation of the Lorenz SZ40 cipher machine