The Handbook of Portfolio Mathematics: Formulas for Optimal Allocation & Leverage