What are the heap and the stack, and why does it matter?

Technical