Main modified in order to apply the filter in two equally parts and
not only in random parts. The main is only for testing purposes.