Raft Consensus Algorithm Implementation in C++ (11)