Many changes. Reached 2x speedup of guided filter.