int_sqrt: optimize square root algorithm