add binary_reader lib and test