Updated some algos, added hypotenuse of a triangle calculation.