added getHypotenuseLength and getDistanceBetweenPoints
fixed a bug