optimal cost section complete, last commit before I remove section 3.a with confidenceFactor 0.001