transformation of binary search
solved one more problem