Two binary search methods.

determining whether an object is in a sorted list using binary search method.