Barcode trees