Classifying pairs with trees for supervised biological network inference