https://wikimass.com/java/minimum-value-of-array