reverse binary algorithm