modified biogo.matrix