minCost from start to a place, recursion version

minCost