Sparsening algorithm for multihadron lattice QCD correlation functions | Synapse