Added an Stack template class