changed all functions to accept head as a parameter. this removes the global declaration of linked list pointer variables.
Added function to add two lists and create a new lists as its result.