Reference:

Duccio Fanelli, Alain Noullez, and Erik Aurell. A heap-based algorithm for the study of 1d particle systems. J. Comp. Phys., 186:697–703, 2003.

Suggested BibTeX entry:

@article{heap,
    author = {Duccio Fanelli and Alain Noullez and Erik Aurell},
    journal = {J. Comp. Phys.},
    pages = {697-703},
    title = {A heap-based algorithm for the study of 1D particle systems},
    volume = {186},
    year = {2003},
}

See www.sciencedirect.com ...