Calculate Hypotenus of triangle