mplementing a  Decentralized Distributed Locks algorithm