Added a C++ version.
Fixed the licence text.
Fixed a typo in genRand().
Included sha256 and sha512 codes from https://github.com/routar/C-SHA2
Updated the README.md accordingly.
Splitted codes into a library part and a program part.