add distance calculation to cosine.py, add non-class test to test.txt