function getOperationStrategy( operator, dimension, mergedElements ) {

		if ( dimension === 3 ) {

			if ( operator === "add" ) {

				return new Add3d( mergedElements );

			} else if ( operator === "concatenate" ) {

				return new Concatenate3d( mergedElements );

			} else if ( operator === "subtract" ) {

				return new Subtract3d( mergedElements );

			} else if ( operator === "multiply" ) {

				return new Multiply3d( mergedElements );

			} else if ( operator === "dot" ) ; else if ( operator === "maximum" ) {

				return new Maximum3d( mergedElements );

			} else if ( operator === "average" ) {

				return new Average3d( mergedElements );

			}

		} else if ( dimension === 2 ) {

			if ( operator === "add" ) {

				return new Add2d( mergedElements );

			} else if ( operator === "concatenate" ) {

				return new Concatenate2d( mergedElements );

			} else if ( operator === "subtract" ) {

				return new Subtract2d( mergedElements );

			} else if ( operator === "multiply" ) {

				return new Multiply2d( mergedElements );

			} else if ( operator === "dot" ) ; else if ( operator === "maximum" ) {

				return new Maximum2d( mergedElements );

			} else if ( operator === "average" ) {

				return new Average2d( mergedElements );

			}

		} else if ( dimension === 1 ) {

			if ( operator === "add" ) {

				return new Add1d( mergedElements );

			} else if ( operator === "concatenate" ) {

				return new Concatenate1d( mergedElements );

			} else if ( operator === "subtract" ) {

				return new Subtract1d( mergedElements );

			} else if ( operator === "multiply" ) {

				return new Multiply1d( mergedElements );

			} else if ( operator === "dot" ) ; else if ( operator === "maximum" ) {

				return new Maximum1d( mergedElements );

			} else if ( operator === "average" ) {

				return new Average1d( mergedElements );

			}

		}

	}
"StrategyFactory" create a operation strategy for MergedLayer.
This Factory method is used by "MergedLayer1d", "MergedLayer2d", "MergedLayer3d".
As merge function in TensorSpace use Strategy design pattern,
this Factory method handle creation of all concretion strategies.