modified linear search to return -1 when item is not found, and added binary search algorithm