made a base implementation for genPOW