adding binary search for int types