Cleaned up some bugs in the calculation of the jacarrd distance.