Change the cost model to a simpler one
Merge pull request #2892 from systay/simple-costs

Change the cost model to a simpler one