A Dynamic Model of the Limit Order Book