A spark clone implemented by C++