C implementation of Raft protocol