Added a function to find the base address of the stack