adding binary search homework and something else