Change the read_procmem function to return the stack size of the process