Problem Solving Using Binary Search In 2d Array