An Introduction to Cryptocurrencies and Bitcoin