hw12: array-based stack

Implementation of stack data structure with an Array backbone, with push(),
pop(), and peek() methods adjusted accordingly.