Change from X11 to Quark's cPoW

Change complete PoW function.