def getMax(array_list):
    """Returns a tuple (index,value) of the maximum in an 1D array or list"""
    m = array_list[0]
    m_index = 0
    for i,value in enumerate(array_list):
        if value > m:
            m = value
            m_index = i
    return (m_index,m)