Adding transitional C++ version, to be used as a base for CUDA version
Merge pull request #1 from dmikushin/master

Adding transitional C++ version, to be used as a base for CUDA version