fuzzy-logic and fuzzy rules in ruby