added rna matrix implementation