Iss6/nearest neighbor usa

Here is my final code to be merged into master. @aubry74 please review and check that it's understandable. Just ask if there is something unclear!