Update extraction.py distance.py and main.py
Updating filter.py and neighbour.py