Classify triangle