Added bit reader and writer classes