Triangle A B C is isosceles, with A B=A C and altitude A M=11. Suppose that there is a point D on \overline{A M} with A D=10 and \angle B D C=3 \angle B A C. Then the perimeter of \triangle A B C may be written in the form a+\sqrt{b}, where a and b are integers. Find a+b.
