made the stack bigger

* no longer overflows into the encoder demo memory
made the stack bigger in template