Started BPCS development. Ported PBC/CGC from image_utils to bit_manip.