B quark tagging and cross-section measurement in quark pair production at D0