https://wikimass.com/python/maximum-value-of-array