Is it possible to reuse the `binarysearch` method in `sparsematrix.jl`?