Diffie-Helman example in g++