Adds hypotenuse fn