fix 'binary search' problem solution