Four Basic Functions

Added four basic functions for stack