Self-organization of markets: An example of a computational approach