Move Stack implementation inside an object
Initial version of PriorityQueue
Adapted to scala collections API