modify binary_harada.cpp