simpler pxHash implementation