Popcnt vectorization

Hi Simon,

Same as in the other pull request, added the missing masks

Best regards,
Diego