seperate function for creating new node.
append and prepend function working.
pass data to be deleted.
add functionality to delete node with only pointer.