Markets and Hierarchies