use external stack instead to manage memory

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>