refactored bit packing
Merge pull request #80 from Parquet/encodings

create an encodings module to facilitate encoding sharing