Rewrote ClosestFromList to be more efficient. (utilized more efficient datastructures)