Add C++ wrapper.
Add r3.hpp to Makefile.am.
Merge pull request #50 from whitglint/master

Add C++ wrapper.