Update bhattacharyya.m