Implemented computation of total disagreement on an ordering
Precompute pairwise disagreements in main()
Added some diagnostic output