calculates the angle sum of any polygon and uses minimum conditions to prove triangles are congruent or similar