Refactored the whole math pkg. Filters have a common interface now.
Abstract superclasses are encapsulating common functionalities like
buffer handling.