How to find the minimum value of a function. I'm trying to find the minimum value in a list recursively.