Added clz, ctz, and popcount functions