Simplify `mid` computation in binary-search.js