public static double[] pageRankIterations(double[][] transitions, int steps) {
		double[][] matrixAfterKSteps = new double[transitions.length][1];
		matrixAfterKSteps[0][0] = 1.0;
		for(int i = 1; i < matrixAfterKSteps.length; i++){
			matrixAfterKSteps[i][0] = 0.0;
		}
		for(int k = 1; k < steps; k++){
			double[][] previousMatrix = copyOfAMatrix(matrixAfterKSteps); 
			for(int i = 0; i < matrixAfterKSteps.length; i++){
				matrixAfterKSteps[i][0] = 0.0;
				for(int j = 0; j < transitions.length; j++){
					matrixAfterKSteps[i][0] += previousMatrix[j][0]*transitions[j][i];
				}
			}
		}
		double[] pageRank = new double[matrixAfterKSteps.length];
		for(int i=0; i < matrixAfterKSteps.length; i++){
			pageRank[i] = matrixAfterKSteps[i][0];
		}
		return pageRank;
	}