Linked List Properly Working in case of passing head as double pointer