Stack, OfferStack and BidStack classes

Implemented a single sorting algorithm for both offer and bid stacks in
the Stack super class.