Update distance.py

added skeleton termsearch and papercompare functions, should start integrating with main and clustering to get better compare of rankings