added new stack.h implementation -MM