New algorithm for the analysis of nucleotide and amino acid evolutionary relationships based on Klein four-group