Refactored class Stack to inherit list

Also test_pda now runs unittest automatically with unittest.main()