Fast Median Algorithm on Decentralized Networks