Let A B C be an equilateral triangle with side length 2, and let M be the midpoint of \overline{B C}. Points X and Y are placed on A B and A C respectively such that \triangle X M Y is an isosceles right triangle with a right angle at M. What is the length of \overline{X Y}?