Change docfreq structure to Arraylist<Integer>
Fix bug for pos