K Nearest Neighbours, Machine Translation, Hash Table.
realized that it may not have been necessary to go through all of your friends in your address in order to find the ones closest to you. You might have imagined if you somehow could filter on which friends were all in a general region such as North America, then you could just search within that