barebones implementation of orderbook