Extracted quicksort into utils.c
Extracted quicksort from bit_array.c and made it generic
Created header for utils.c