[random-walk] added simplified version in cpp
[random-walk] refactored first cpp version