forked from: Getting the max value in an Array

