moore Neighborhood BFS
fun mooreNeighborhoodBFS(center: IntArray, radius: Int = 1, includeCenter: Boolean = false): List<IntArray>(source)
A Moore neighborhood includes all points where the Chebyshev distance (also called L∞ distance) from the center is less than or equal to the radius. The Chebyshev distance is the maximum absolute difference across all dimensions. This function expands from the center outward using a breadth-first search to find the elements.
Return
the points in the neighborhood
Parameters
center
the point around which the neighborhood resides
radius
the radius for the neighborhood. The default is 1.
include Center
indicates if the center point should be included in the returned array