add sqrt algorithm from SICP lecture 2