added stack.h file, refactor makefile and refactor pointer arithm in go.cpp