This function make sure that a is smaller than b before making a call to findDistWrapper ( )
function findDistWrapper ( root , a , b ) { var temp = 0 ; if ( a > b ) { temp = a ; a = b ; b = temp ; } return distanceBetween2 ( root , a , b ) ; }