Kademlia implementation in Scala for fun