min of array using recursion