Some correction for input type and search value type in binary search