In-context Examples Selection for Machine Translation