Added cycle detection to LinkedList, removed constructors.