@Override
	public boolean equals(Object o) {
		if (o instanceof Matrix) {
			Matrix m = (Matrix) o;
			if (m.getWidth() == getWidth() && m.getHeight() == getHeight()) {
				return Arrays.deepEquals(m.data, data);
			}
		}
		return false;
	}