Given an m x n binary matrix mat, return the distance of the nearest 0 for each cell.
The distance between two cells sharing a common edge is 1.
m == mat.lengthn == mat[i].lengthmat[i][j] is either 0 or 1.0 in mat.1 to the nearest cell containing 0.0 for all cells containing 0.0 cells initially and start the BFS.0 cells, infinity for 1 cells.m and n are the matrix dimensions. Each cell is processed at most once.1 initially.