Added JensenShannon distance function with test

Check if v!=0 before computing 0.5 * v * (math.Log(v) - math.Log(m)). Otherwise, v=0.0 results in NaN due to math.Log.