gfx with stack-LIFO, difference between stack and heap