replace binarysearcharray with std::vector and std::lower_bound

spaces seem a bit odd here