Added method to check matrix satisifes total probability