mergewords tested and slightly optimized against search4.