v1 of binary search for index of insertion
add test cases