Adding weights to mitiv TotalVaration