A Fuzzy Logic Control Library and Application in C++