Raft consensus algorithm implementation