implemented bhattacharyya similarity and his test