print combination and refactored sqrt function by using the Binary Search Framework