Raft algo implementation in.net