deletes a record from a list
delete(phead,predecessor)