Merge pull request #98 from michaelforney/popcount Use bitwise test for power-of-2 instead of popcount