Added length() methods for LinkedList and Node objects