Fuzzy logic library