Added projection test (closes #11), change distance metric depending on projection (closes #3)