Finish getJaccard function