Improved Efficiency

Implemented meshgrid to generate filters. Functions now have
approximately 50% faster runtime.