Ziqi added bip.h and bsq2bip function