    function [Stack]=CreateStack( MaxSize )
        Stack.StackSize=0; 
        Stack.MaxSize=MaxSize;
        Stack.Elements=cell( MaxSize , 1 );
    end