Algorithms / relate

1. add missing includes
2. qualify call to `binary_search` with `std::` namespace