Mac_Lin Method 3 Optimization done
Mac_Lin beginning work on Method 1