implemented basic proof-of-work algorithm