Distributed consensus algorithm implemented in Scala and Akka