what is the branch of mathematics that studies relationships between side lengths and angles of triangles?