TotalVarDist function

Generic function for the computation of the total variation distance of two distributions