Create algorithm-stock.cpp