Add stock maximize

Add code and readme for stock maximize