Update RightTriangle.java

updates calculations when a or b changes