Refactored and commented code in Binary Search.