Added implementation of square root.