a simple impl of raft consensus protocal lib
trying to impl a simple c++ version of raft consensus protocal lib