Initial commit for both python and C++ implementation.

C++ implementation is built on windows platform. But the C++ code should work on any platform.