Improved stack implementation by array. Added stack implementation by using pointers.