Remove a node in O(1).