Searches an array using linear recursion.