Implements finding elements in arrays.