Basic singly-linked list implementation.
Delete a node. Mostly copied from CTCI.