Major rewrite of anti aliasing function. works only on a single signal.