Implement serval operation of linked stack.