Old orderbook implementation for an interview with RGM