Added new methods to LinkedList.js