How to execute min(a, b) method in the min(a, b, c, d) method?