Created a custom list generator for quick sort