Fixed bug in b-calculation. 1-d 2-well example looks reasonable now.