added example for implementing stack

this example shows how to implement stack by creating user defined
push() method for entering elements and pop() method for retriving
elements from the stack.