Started C++ implementation.
More work on C++ implementation.