Make sure to free up memory from filter in FastMarchIt function