Numerical Methods and Optimization in Finance