Stack: Changed implementation to operate on pointers instead of values. That allow to work even with objects now