Added Min Max for arrays