https://wikimass.com/c-sharp/maximum-value-of-array