Introduce cost for merges.

Update README.