Avoid placeholder expressions in implementation of binary search algorit...

...hms.

Fixes #489