Generic Stack. Can print out a formatted representation of the stack.