RAFT implementation in Erlang