Finished DH algorithm.

* Fix a severe segment fault in BigInt.
* Add simple DH demo.