public void checkElements(double[][] A) throws IllegalArgumentException{
		for ( int i = 0; i < A.length; i++ ){
			for ( int j = 0; j < A[0].length; j++ ){
				if ( A[i][j] < 0 || A[i][j] > 1.0 ) {
					throw new IllegalArgumentException("All matrix elements should be in range of [0.0,1.0]");
				}
			}
		}	
	}