Added C++ library and examples