Reset array pointer to beginning if end