modified the termscomparator to return an array in order for the output to be ok (it used to write ...23,"1,0,1" instead of ...23,1,0,1). In the process, had to make it return Integer.MIN_VALUE when the number of terms differed between the correct and the misspelled queries.