Added Equilibrium Index to Number Theory, and cleaned up some code.