public void GroupTest()
{
int[][] data = {
new int[] { 1, 1 },
new int[] { 1, 1 },
new int[] { 1, 1 },
new int[] { 1, 1 },
new int[] { 1, 0 },
new int[] { 1, 0 },
new int[] { 1, 0 },
new int[] { 1, 0 },
new int[] { 1, 0 },
new int[] { 2, 1 },
new int[] { 2, 0 },
new int[] { 2, 0 },
new int[] { 2, 0 },
};
int[][] expected = {
new int[] { 1, 4, 5 },
new int[] { 2, 1, 3 },
};
int[][] actual;
actual = Tools.Group(data, 0, 1);
Assert.IsTrue(Matrix.IsEqual(expected, actual));
}