docs: public static double[][] transpose(double[][] matrix){
  
  		//Get number of rows and columns of matrix
  		int numberOfRows = matrix.length;
  		int numberOfCols = matrix[0].length;
  
  		//Instantiate a unitMatrix of dimension dim
  		double[][] transpose = new double[numberOfCols][numberOfRows];
  
  		//Create unit matrix
  		for(int rowIndex = 0; rowIndex < numberOfRows; rowIndex++) {
  			for(int colIndex = 0; colIndex < numberOfCols; colIndex++) {
  				transpose[colIndex][rowIndex] = matrix[rowIndex][colIndex];
  			}
  		}
  		return transpose;
  	}