refactored stack.lua
implemented Stack:top
refactored stack.lua, wrote tests
refactored stackqueue.lua
added inheritance example (chapter 16)