Update bson2v8.cc

add the `ToBSON` function.