Algorithms relating to LinkedList. Language: Python