A Single Machine Bitcoin mining using scala