Linear search using recursion in c