Kuwahara filter optimizations

Optimized Kuwahara filter and added a heavily optimized radius 3 Kuwahara filter.