fix1
fixes in guided filter and memory consuming optimizations.