implement a stack use doubled linked list as ring to simulate a stack