Implemented generic Stack to illerstrate the usage of Generic type.