added functions to remove directions duplicates
Merge remote-tracking branch 'origin/master'