Java Code for Singular LinkedList, Circular LinkedList and DoublyLinkedList