generalizing concat-byte-array
adding initial difficulty target calculation and match checking
adding initial mining