$Se^2$: Sequential Example Selection for In-Context Learning