Big refactor, first of all to change all uses of primitive arrays to Lists, and secondly to make sorting work correctly in regard to continuing on the multiway path vs moving to the head-to-head path [afurdell]