fixed bug
use smaller stack
use optimization
debug utils
fixed switch for compiling with optimization on