public String path()
	{
		int x=matrix[0].length-1;
		int y=matrix.length-1;
		String rs1="";
		String rs2="";
		String resultalt="";
		int pos1=matrix[0].length-2;
		int pos2=matrix.length-2;
		while(x>0 || y>0)
		{

			if(matrix[y][x][1]==1 && y>0)
			{
				rs1=s2[pos2]+rs1;
				pos2--;
				rs2="-"+rs2;
				y--;
				resultalt="D"+resultalt;
			}
			else
			{
				if(matrix[y][x][2]==1 && x>0)
				{
					rs2=s1[pos1]+rs2;
					pos1--;
					rs1="-"+rs1;
					x--;
					resultalt="I"+resultalt;
				}
				else
				{
					rs1=s2[pos2]+rs1;
					rs2=s1[pos1]+rs2;
					pos1--;
					pos2--;
					x--;
					y--;
					//System.out.println(rs1 +"\n" + rs2);
					resultalt="-"+resultalt;	
				}		
			}
		}
		String result = rs1 +"\n" + rs2;
		System.out.println("eine optimale Editdistanz: "+matrix[matrix.length-1][matrix[0].length-1][0]);
		return result;
	}