Added a sqrt algorithm