Cryptography speed boost

Added cryptography unit tests, as well as a speed test program.

Speed improvement of ~4000%:

    trials: 20000
  
    slow time: 1.396937 sec
    fast time: 0.035919 sec
    keygen time: 1.417149 sec
    precompute time: 1.359203 sec
  
    Speed boost: 3889.1%
  
    slow: 14317.0 ops per second
    fast: 556809.1 ops per second