You are given a two-dimensional integer array matrix containing only 0s and 1s. Return a new matrix of the same size where each cell holds the Manhattan distance from that cell to the nearest 0 in matrix.
The Manhattan distance between cells (r1, c1) and (r2, c2) is abs(r1 - r2) + abs(c1 - c2). A cell that already holds 0 has distance 0 to itself.