Order Book Matching Engine for Stock Exchanges