Implementation of the Distributed Prefix Assignment Algorithm