Mining a block using the Proof of Work algorithm