delete node from list in o(1)