further progress on phrase matching
added phrase matching calculation to index_doc method in DIG