Added private node class in LinkedList and constructor for the LinkedList