many changes; need to formalize documentation and clean this up later
replacing division by two with right shift, and adding extra variable to comparable data structure
adding "extra" variable to comparable data structure
adding "extra" variable to comparable data structure
sorting algorithms no longer working; need to debug later