added basic delete function, need to test cases such as deleting first/last node