modified PoW algorithm