Implemented mining function with sha1 (160 bits) masking the lower 96
bits to make it a long value.
Implemented a check valid function in 3 scale: easy, intermediate, hard
to adjust the difficulty for mining.