Refactored the code to handle errors with markets_to_be_matched not being in data. Check happens prior to the execution of the calc distances loop now.
Modified calculate_distances and best_matches to allow for parallel processing to be executed when the specifies markets for markets_to_be_matched.