Write new setBetaEqState
- Add findYeOfMinAbsMunu that actually works
- Change implementation of setConstQuantityAndBetaEqState to use
  findYeOfMinAbsMunu
- In query Replace use of lookupIndex with util's lookupIndexBisect