bgzf refactoring
added code for simultaeneous bgzf encoding and decoding