CalculateWidth function

Calculation of the width for triangular and trapezoidal fuzzy numbers