added jordan's sqrt algorithm