In-Context Learning with Iterative Demonstration Selection