Demonstration Selection And Task Formulation For Effective In-Context Learning