Added architecture dependent popcnt optimizations as suggested by Intel(R) engineering team.
Fixed a few details.
Unrolled loop by hand, got rid of pragma.
Manually adding cpuid kernel header for MacOS only.
Adding third-party dir.