Add some modules into binary_pack.
Modify functions in the Binary_pack to modulalize that is standard OCaml partitioning to module.
Add tests for modules in the Binary_pack.