Codes to build the matrix of voids (0-not void, 1-void)