Lagrange's Theorem for Square Root Continued Fractions