the mean filter works well, but in order to implement our own we need to create a genNeighborSet function