Implemented the stack-like interface for unpack.
Supported fixed array stack(default) and variable size stack using vector.
The variable size version is slower than fixed version.