Add conditional test in TriangularMF

The triangular mf values are checked if they are in the right order, i.e.
left_vertex <= center <= right_vertex