OptimizationPortion

Serial optimization and Parallel optimization added.