How a stock exchange is organised, from brokers and order books to the clearing houses that settle each trade.