Trying a different way of allocating this matrix in watershed kernel.