added function to maximize Sharpe Ratio