Added stack and stacktest. Changed struct declarations in queue.