check type of triangle: isosceles, equilateral, scalene