If the element is smaller than the middle element, repeat at 1. with left partition.
If the element is greater than the middle element, repeat at 1. with right partition.
If the element is equal to the middle element, the element has been found so stop.