Adding stack functions
Finished implementing stack functions