fixed a final issue (final return statement) in the binary search