Added a template function-based implementation of binary search for std::vector.