bugfix

bugfix
instead own stack impletetion using std::stack