Bug fix for recursiveLinearSearch's base case