Algorithm  The standard algorithm for the reduction of the boundary matrix to barcodes for j =  to n