Let's put links to pseudo code for the reordering project here.
Douglas's routines: http://music.columbia.edu/~douglas/MEAP_reorder_challenge/reordering_pseudocode.txt
Also, this seems somehow related: http://serendip.brynmawr.edu/bb/kinser/Compare1.html
