Index: /branches/autoquest-core-tasktrees-alignment/src/main/java/de/ugoe/cs/autoquest/tasktrees/alignment/matrix/StaticTriangleMatrix.java
===================================================================
--- /branches/autoquest-core-tasktrees-alignment/src/main/java/de/ugoe/cs/autoquest/tasktrees/alignment/matrix/StaticTriangleMatrix.java	(revision 1703)
+++ /branches/autoquest-core-tasktrees-alignment/src/main/java/de/ugoe/cs/autoquest/tasktrees/alignment/matrix/StaticTriangleMatrix.java	(revision 1703)
@@ -0,0 +1,66 @@
+package de.ugoe.cs.autoquest.tasktrees.alignment.matrix;
+
+public class StaticTriangleMatrix implements ITriangleMatrix {
+	
+	private float[] matrix;
+	protected int size;
+	
+	
+	public StaticTriangleMatrix(int size) {
+		this.size = size;
+		matrix = new float [size*(size+1)/2];
+	}
+	
+	public float get(int first, int second) {
+		int row = Math.min(first, second);
+		int col = Math.max(first, second);
+		return matrix[row*size-(row*(row+1)/2 - (size-col))];
+		
+	}
+	
+	public void set(int first, int second, float value) {
+		int row = Math.min(first, second);
+		int col = Math.max(first, second);
+		matrix[row*size-(row*(row+1)/2 - (size-col))] = value;
+	}
+
+	public void initialize(float value) {
+		for (int i=0; i < matrix.length; i++) {
+			matrix[i] = value;
+		}
+	}
+	
+
+	
+	public String toString() {
+		String result = "";
+		for (int i = 0; i < size; i++) {
+			for(int j = 0; j< size; j++) {
+				if(i<j) {
+					if(Float.isInfinite(this.get(i,j))) {
+						result = result + " -------";
+					}
+					else {
+						result = result + String.format("%+8.2f",this.get(i,j));
+					}
+				}
+				else {
+					result = result + ("        ");
+				}
+			}
+			result = result + "\n";
+		}
+		return result;
+	}
+
+	@Override
+	public void increaseSize(int count) throws Exception {
+		throw new Exception("Cannot call this function on this implementation of ITriangle Matrix");
+		
+	}
+
+	@Override
+	public int size() {
+		return size;
+	}
+}
