basic implementation of DiffFilterFunction and added test for it
not possible to create arrays of references. Also deleted const for output arrays passed
as parameter, because const arrays cause their content to be const as well.