Just a simple program to generate unique random phone numbers [0-9999999] in O(n), and sort them in O(n) (using ~1MB for 10,000,000 phone numbers).