Generates an Array or Linked Lists for testing Algorithms