Added naive implementation of bilateral filtering, gaussian filtering, and generic filtering functions with kernel matrices and functions