supporting empty matrix on initialization (fills matrix with uniform probability)