Understanding Cryptocurrency Mining: Methods and Importance