added capability of calculating the modified F1 score (see Bewley 2013 CVPR workshop)
IMPORTANT CHANGE: we now include the root node in the sparse vector. The root node is of course always 1
fixed a bug in deciding when a node is found