adds first version of bilateral filter - testing is not thoroughly done...