Added determineNumberOfBitsRequired and modify test_Stream for debuggin