combined filter1d & filter2d into abstract class 'filter'

took filter1d and filter2d code and put it into an abstract class
'filter' so you can do filter<Eigen Matrix or Vector> *var = new OTSDF
(or whatever other filter you want to use)