Another implementation of stock matching engine which uses binary heaps to store prices in bid/ask order books, and balances the orders recursively.