https://thecode.media/binarnyj-poisk-python/