sqrt double reimpl