Fix typo in gitignore

Ignore all class files, not .class ...
Create a DistanceResult class.

This will be returned after searching.