Law, Economics, and History: Endogenous Institutional Change and Legal Innovation