arbitrary neighborhood size with duplicates