Pastry Algorithm: Implementation using AKKA actors in scala