Proof of Work vs Proof of Stake: Understanding the Crypto Consensus Algorithm