Raft protocol toy implementation