Avoid placeholder expressions in implementation of binary search algorithms.

Fixes #489
Merge pull request #490 from jaredhoberock/issue-489

Avoid placeholder expressions in implementation of binary search algorit...
Merge branch 'master' into tuple_io