What are the primary differences between stack and heap memory, and how do they impact execution speed and security at Tiber Technologies?