Added copy constructors and destructors for both ArrayList and LinkedList