Decentralized PoS/PoW Algorithm Using Ticket and Nonce Calculation