C implementation for Fuzzy Logic