Jump flood algoritm works except at the edges.