Added JensenShannon distance function with test

Check if qi != 0, similar to above note.