[Optimization] add comments to describe each optimization function