Implemented Array methods sum, min and max.