Determines triangle type from 3 sides