v0.3: stack is now array. much faster