C library for computing bit-reverse permutations