correct a BUG in Makefile, and add a data structure (stack)