An improved form of the Krawczyk-Moore algorithm