Chapter6 gxd

I have implemented this as a circular stack, if such a thing exists (i.e.like a circular queue). I realise this design is quite primitive however the question was non specific as to the properties required of the stack. As this example was mainly aimed at demonstrating the use of private I thought in the interest of brevity this implementation would suffice.