Calculate Hypotenuse of a triangle